﻿using NUnit.Framework;
using SharePoint.Orm.TestHelpers;
using SPGenerated;

namespace SharePoint.Orm.Wrappers {
	[TestFixture]
	public class SPOrmSharePointUserTest : TestBase {
		[Test]
		public void TestGetSiteUserInfoPropertyValue() {
			using (MySPDataContext ctx = new MySPDataContext(SiteHelpers.Url)) {
				ISPOrmUser currentUser = ctx.GetCurrentUser();
				string name = (string)currentUser.GetSiteUserInfoPropertyValue(ctx, "Name");
				Assert.IsNotNull(name);
			}
		}
	}
}
